from django.http import HttpResponseRedirect

def process_perm_request(request):
  p = request.user.get_profile()
  p.refresh_permissions()
  return HttpResponseRedirect('/')